using System;

namespace Gazebo.Core
{
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false)]
    public class PreferenceAttribute : Attribute
    {
        public string ElementName { get; private set; }
        
        public object DefaultValue { get; private set; }
        
        public PreferenceAttribute(string elementName, object @default)
        {
            ElementName = elementName;
            DefaultValue = @default;
        }
    }
}
